# Maintainer:

pkgname=perl-crypt-passwdmd5
pkgver=1.40
pkgrel=4
pkgdesc="Provides a crypt()-compatible interface to new MD5-based crypt()"
arch=('any')
url="http://search.cpan.org/dist/Crypt-PasswdMD5"
license=('GPL' 'PerlArtistic')
depends=('perl')
provides=('perl-passwd-md5')
replaces=('perl-passwd-md5')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/Crypt-PasswdMD5-$pkgver.tgz)
md5sums=('efc61e1f62c9768be39df2613d685343')

build() {
  cd Crypt-PasswdMD5-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Crypt-PasswdMD5-$pkgver
  make test
}

package() {
  cd Crypt-PasswdMD5-$pkgver
  make DESTDIR="${pkgdir}" install
}
